package com.mbbb.yygh.hosp.testmongo;

import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface UserRepository extends MongoRepository<User,String> {

    //where name=? and age=?
    List<User> findUserByNameAndAge(String name, int age);

    //where name like ?
    List<User> findUserByNameLike(String name);
}
